import QtQuick 2.8
import QtQuick.Controls 2.1
import QtQuick.Layouts 1.3

Control {
    id: root

    property alias text: inputCondition.text

    width: 225
    height: 32
    padding: 0
    background: Rectangle {
        anchors.fill: parent
        radius: 2
        color: "#DAD8D8"
    }

    RowLayout {
        anchors.fill: parent
        spacing: 0

        Image {
            Layout.leftMargin: 10
            Layout.alignment: Qt.AlignVCenter
            source: "qrc:/images/icon_search.png"
        }

        TextField {
            id: inputCondition
            Layout.fillWidth: true
            Layout.rightMargin: 10
            Layout.alignment: Qt.AlignVCenter
            background: Item {}
            selectByMouse: true
            font.pixelSize: 14
            color: "#818181"
            placeholderText: qsTr("搜索")
        }
    }
}
